package com.aat.restful.springresteasy.app;

public enum ErrorCode {
	ERROR_NONCE(0X4001, "request same data again"),
	ERROR_ACCESSKEY(0X4002, "request app's accesskey not right"),
	ERROR_SIGN(0X4003, "request app's sign data error"),

	OK(0x0000, "success");

	private int code;
	private String desc;

	private ErrorCode(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

}
